package com.weixin.demo.model;

import lombok.Data;

@Data
public class EventRes {

    private Event event;

    private Object res;

    public EventRes(Event event, Object res) {
        this.event = event;
        this.res = res;
    }

    public enum Event {
        /**
         * event事件类型
         */
        ATTENTION("关注公众号"),
        LOGIN("登录扫码"),
        BONDING("绑定扫码");

        private final String msg;

        public String getMsg() {
            return msg;
        }

        Event(String msg) {
            this.msg = msg;
        }
    }
}
